package edu.isquen.web.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.http.HttpServlet;

import edu.isquen.init.InitUserInfo;
import edu.isquen.web.exception.BaseException;


public class StartupListener extends HttpServlet implements ServletContextListener{

	private static final long serialVersionUID = -5105420269844648595L;

	public void contextDestroyed(ServletContextEvent arg0) {
		
	}

	public void contextInitialized(ServletContextEvent arg0) {
		InitUserInfo initUser = new InitUserInfo();
		try {
			initUser.run();
		} catch (BaseException e) {
			e.printStackTrace();
		}
	}

}
